Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoC: uploading files to nextcloud #278

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

grnd-alt
Copy link
Member

@grnd-alt grnd-alt commented Nov 22, 2024

Proof of concept to show how we could intercept the excalidraw drag'n'drop handling to support more filetypes.

Current state:
Drag and drop from explorer into whiteboard.
image file supported by excalidraw -> normal image render
other filetype -> filename + icon

on click on other filetypes -> file get's downloaded

⚠️ TODO:

  • moving the element should not result in file download
  • copy paste into whiteboard
  • proper design for element in whiteboard (respecting darkmode)
  • max file size

image

@grnd-alt grnd-alt self-assigned this Nov 22, 2024
@grnd-alt grnd-alt force-pushed the feat/uploading-files-to-nextcloud branch from e05b3b8 to e26b418 Compare November 22, 2024 16:45
@grnd-alt grnd-alt force-pushed the feat/uploading-files-to-nextcloud branch from c6db63d to b7c29c8 Compare December 3, 2024 12:43
@grnd-alt grnd-alt force-pushed the feat/uploading-files-to-nextcloud branch from b7c29c8 to 2aea305 Compare December 3, 2024 12:54
@grnd-alt
Copy link
Member Author

grnd-alt commented Dec 3, 2024

(@nextcloud/designers do you have input for the file element?, we can use any excalidraw element to display the file, but no html, maybe you can create a design in excalidraw?)

@marcoambrosini
Copy link
Member

@grnd-alt what is needed here exactly? Could you give a bit more context?

@marcoambrosini
Copy link
Member

marcoambrosini commented Dec 4, 2024

Update after call with @grnd-alt

  • we have to use excalidraw limited range of styles and colors
  • we can use our own svg icons for the different file types
  • we should invert colors of icons/text/borders with dark theme

Here's a quick mockup:
Screenshot 2024-12-04 at 11 04 26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

2 participants